'''
Created on 2011/08/15

@author: Administrator
'''

from google.appengine.ext import webapp

class MyClass(webapp.RequestHandler):


    def __init__(self):
        '''
        Constructor
        '''
    
    def judgeAgent(self):
        userAgent=self.request.user_agent
        if userAgent.startswith('DoCoMo'):
            return '00'  
        elif userAgent.startswith('KDDI-'):
            return '01'
        elif userAgent.startswith('SoftBank'):
            return '02'
        elif userAgent.startswith('Vodafone'):
            return '02'
        elif userAgent.startswith('Mozilla/5.0 (iPhone'):
            return '10'
        else:
            return '20'
        